﻿namespace MoreExtentions
{
    public static partial class Linq
    {
        /// <summary>
        /// Removes the last.
        /// </summary>
        /// <param name="t">The t.</param>
        /// <param name="length">The length.</param>
        /// <returns></returns>
        public static string RemoveLast(this string t, int length)
        {
            return t.Remove(t.Length - length, length);
        }
    }
}